Repository navigation
feat(canvas): resize the Pages and Layers split - #516
Conversation
- Drag the edge between the Pages list and the Layers tree, or focus it and use the arrow keys (10px a press); Home and End take it to its limits. - Store the split per browser as a percentage of the rail height. CSS and JS both clamp it, so Pages keeps its heading and one row and Layers keeps room for a few rows at any window height. - Until the split is dragged, the Pages list keeps its 30vh cap. - Replace PagesPanel's unused fill prop with the split props. - Tests: clamp, key and storage rules as unit tests; headless Chromium drives a real mouse drag, keyboard steps and a reload.
|
All contributors have signed the CLA ✍️ ✅ |
[Low impact] The change is limited to the canvas rail’s Pages and Layers layout. The PR appears safe to merge, with follow-up fixes needed for small sizes and screen-reader feedback. FindingsSummaryAdds a saved, draggable split between Pages and Layers, with keyboard controls and size limits.
Reviews (1) · Last reviewed commit: "feat(canvas): resize the Pages and Layer..." · Reviewed by Greptile |
- At 54px, a selected frame's move picker (40px) left the Pages list no room for its 27px row, so the first row was clipped. - The minimum is now 101px: heading 30 + row 27 + list padding 4 + picker 40. - The browser test selects a frame, presses Home, and checks that the first row and the picker sit inside their Pages section. - The unit test is renamed to name the minimum, not one row.
After a submit the composer flies to the first new frame. A component made from markup lands its main on the Components page, so the person was pulled off their page onto it. Pass over component mains and wait for the deliverable. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit cc1d916e867f322022e56694a9b249b4deb3e186)
- Merge current upstream and preserve the richer canvas fixture contract. - Keep sparse page lists compact and draw a full-width panel-color divider. - Account for the move picker in the minimum and report live separator values. - Cover sparse lists, dragging, keyboard limits, persistence, and selection changes.
|
Updated against current main and addressed the review feedback. Sparse page lists stay compact, the divider uses the panel outline color, and the resize limits account for the move picker. The separator also reports live current/min/max values. Verified the one-page empty-canvas case and selected-frame minimum in Chromium; all 130 affected tests, typecheck, lint, and changed-file formatting passed. |

Summary
Verification